﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Text;
using System.Windows.Forms;
using DevExpress.XtraEditors;
using QLTV_BLL;
using QLTV_Public;

namespace GUI
{
    public partial class frmXemChiTiet : DevExpress.XtraEditors.XtraForm
    {
        #region khai bao bien
        CT_PhieuYeuCau_BLL ct_bll = new CT_PhieuYeuCau_BLL();
        public string maPhieu = "";
        #endregion

        #region LoadForm

        public frmXemChiTiet()
        {
            InitializeComponent();
        }

        private void frmXemChiTiet_Load(object sender, EventArgs e)
        {
            Load_Data();
        }

        #endregion

        #region ham viet them

        private void Load_Data()
        {
            grd_Data.DataSource = ct_bll.Load_ChiTiet_Muon(maPhieu);
            grv_DaTa.BestFitColumns();
            groupControl1.Text = "Thông Tin Chi Tiết Cho Phiếu Yêu Cầu:  "+maPhieu;
        }

        #endregion


        #region cac chuc nang

        private void btnThoat_ItemClick(object sender, DevExpress.XtraBars.ItemClickEventArgs e)
        {
            this.Close();
        }

        #endregion
    }
}